package com.责任链模式;

/**
 * @author Fang Ruichuan
 * @date 2022-09-03 13:25
 */

public class Main {
    public static void main(String[] args) {
        Request request = new Request.Builder()
                .name("张三")
                .days(8)
                .reason("事假")
                .build();
        ChainOfResponsibilityClient client = new ChainOfResponsibilityClient();
        client.addRatify(new CustomInterceptor());
        Result result = client.execute(request);
        System.out.println("结果：" + result.toString());
    }
}
